
class Base{
    public int a;
    public int b;
    public void methodB(){
        System.out.println("父类中的methodB!");
    }
}
class Derived extends Base{
    public void method(){
        System.out.println("子类中的method!");
        super.a = 10;
        System.out.println(a);
    }

}

public class Test {

    public static void main(String[] args) {
        Derived derived = new Derived();
        derived.method();

    }
}
